package com.kfm.am.kt;

public class Demo01 {

    public static void main(String[] args) {
        final String xdName = "派蒙";
        final int age = 1;
        Mhy ginShin = new Mhy() {
            String wy = "枫原万叶";
            String city = "枫丹";
            static String name = "原神";

            @Override
            public void start() {
                System.out.println(wy + "在" + city + "旅行");
                System.out.println("原神，启动");
                travel();
                scope();
            }
            public void travel() {
                System.out.println("开始旅行");

            }
            public void scope() {
                System.out.println(age + "这里的区域，以后再来探索吧！");
                System.out.println(xdName + "这里的区域，以后再来探索吧！");
            }
        };
//        age = 2;
//        xdName = "卡夫卡";
        ginShin.start();
    }
}

interface Mhy {

    void start();
}
